package com.yike.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yike.user.entity.Merchant;
import com.yike.user.param.MerchantPageParam;

import com.yike.user.vo.MerchantVo;
import com.yike.user.vo.PlatformMerchantVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * 商户表 Mapper 接口
 *
 * @author Sakura
 * @since 2024-09-03
 */
@Mapper
public interface MerchantMapper extends BaseMapper<Merchant> {

    MerchantVo getMerchantVo(@Param("merchantNo") String merchantNo);

    IPage<MerchantVo> getMerchantList(@Param("page") Page page,
                                      @Param("param") MerchantPageParam param);

    PlatformMerchantVo getPlatformMerchantVo(@Param("id") Long id);

    IPage<PlatformMerchantVo> getPlatformMerchantList(@Param("page") Page page,
                                                     @Param("param") MerchantPageParam param);


}
